package project.taobao.commons.activemq;

import org.springframework.jms.listener.DefaultMessageListenerContainer;
import project.taobao.commons.activemq.template.ActiveMqTemplate;

import java.util.ArrayList;
import java.util.List;

public class Main {
    // methods
    public static void main(String[] args){
        List<Double> list = new ArrayList<>();
        list.add(1D);
        list.add(2D);
        ActiveMqTemplate.sendMessage("queueDestination", list);
        ActiveMqTemplate.sendMessage("123", "123");
//        System.out.println(ActiveMqTemplate.consumerMessage("queueDestination"));
    }
    // getters, setters

    // constructors
}
